package org.jix.weblog.module.admin.convert;

import org.jix.weblog.module.admin.model.vo.article.FindArticleDetailRspVO;
import org.jix.weblog.module.common.domain.dos.ArticleDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @version 1.0
 * @Author Jix
 * @Date 2024/9/9 13:30
 * @注释
 */

@Mapper
public interface ArticleDetailConvert {
    /**
     * 初始化 convert 实例
     */
    ArticleDetailConvert INSTANCE = Mappers.getMapper(ArticleDetailConvert.class);

    /**
     * 将 DO 转化为 VO
     * @param bean
     * @return
     */
    FindArticleDetailRspVO convertDO2VO(ArticleDO bean);
}
